const path = require('path');

module.exports = {
  publicPath: './',
  chainWebpack: (config) => {
    // 路径别名
    config.resolve.alias
      .set('@', resolve('src'))
      .set('@mixins', resolve('src/assets/less/mixins'))
      .set('@views', resolve('src/assets/less/views'));
  }
};

function resolve(dir) {
  return path.join(__dirname, dir);
}
